<?php if (!defined('THINK_PATH')) exit();?><style>
    .pageFormContent p{
        float:none;
    }

</style>
<div class="pageContent">
    <form method="post" action="index.php?c=Tuangou&a=addOne" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <div style="overflow: hidden">
                <label>专区名：</label>
                <input type="text"   value="" name="name"  class="required"  />
            </div>
			 <div style="overflow: hidden">
                <label>专区运费：</label>
                <input type="text"   value="" name="yunfare"  class="required"  />元
            </div>
            <div style="overflow: hidden;margin-top:20px">
                <label>专区排序：</label>
                <input type="text"   value="" name="sort"   />
            </div>
			<div style="overflow: hidden;margin-top:20px">
                <label>多少件：</label>
                <input type="text"   value="" name="mcount"  class="required"  />
            </div>
			<div style="overflow: hidden;margin-top:20px">
                <label>多少元：</label>
                <input type="text"   value="" name="money"  class="required"  />
            </div>
            <div style="margin-top:20px;">
                <label>分类主图：</label>
                <div style="position:relative;float:left;">
                    <input type="file" class="add_img" style="opacity: 0;position:absolute;top:0px;left:0px;width: 100px;height:100px;" value="" name="images"  onchange="file(this)" class="required"/>
                    <img src="images/timg.jpg" style="width: 100px;height:100px;border:1px solid #eaeaea;" id="pic_master_img"/>
                </div>
            </div>
            

        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script>

    function file(el) {
        for (var i = 0; i < el.files.length; i++) {
            $('#pic_master_img').attr('src',window.URL.createObjectURL(el.files[i]));
        }
    }


</script>